<template>
	<view class="mykehu p20">
		<myNav>
			<view slot="left" @click="back"><uni-icons type="closeempty" color="#fff"></uni-icons></view>
			<view class="center">房源明细</view>
		</myNav>
		<view class="mingxi">
			<view class="mingxi-title">
				获取ERP数据时间:2020-01-02 20:00:38
			</view>
			<view class="table">
				<view class="header">
					房间名称: 测试一号楼盘-测试一期-A区-七单元-11栋-2-3202
				</view>
				<view class="td">
					<view class="tdleft">
						户型
					</view>
					<view class="tdright">
						A ---查看户型
					</view>
				</view>
				<view class="td">
					<view class="tdleft">
						户型
					</view>
					<view class="tdright">
						A ---查看户型
					</view>
				</view>
				<view class="td">
					<view class="tdleft">
						房间结构
					</view>
					<view class="tdright">
						3室2厅2卫
					</view>
				</view>
				<view class="td">
					<view class="tdleft">
						楼层
					</view>
					<view class="tdright">
						32
					</view>
				</view>
				<view class="td">
					<view class="tdleft">
						朝向
					</view>
					<view class="tdright">
						南
					</view>
				</view>
				<view class="td">
					<view class="tdleft">
						建筑面积
					</view>
					<view class="tdright">
						110.00 m2
					</view>
				</view>
				<view class="td">
					<view class="tdleft">
						套内面积
					</view>
					<view class="tdright">
						100.00 m2
					</view>
				</view>
				<view class="td">
					<view class="tdleft">
						建筑单价
					</view>
					<view class="tdright">
						13,000.00 元/m2
					</view>
				</view>
				<view class="td">
					<view class="tdleft">
						套内单价
					</view>
					<view class="tdright">
						14,000.00 元/m2
					</view>
				</view>
				<view class="td">
					<view class="tdleft">
						标准总价
					</view>
					<view class="tdright">
						1,400,000.00 元/m2
					</view>
				</view>
		
				
			</view>
		</view>
		<view class="btn" @click="goto25">
			配置计划
		</view>
	</view>
</template>

<script>
import { mapMutations } from 'vuex';
import darkCalendar from '@/components/dark-calendar/dark-calendar';
import myNav from '../../components/mynav/mynav.vue';
import { searchedVistor } from '@/api/index.js';
import { MyShow } from '@/util/my.js';
export default {
	components: { myNav, darkCalendar },
	data() {
		return {
			para: ''
		};
	},
	methods: {
		back(){
			uni.switchTab({
				url:"../my/my"
			})
		},
		async searchedVistor() {
			//去请求接口
			//  todo 字段自己填充吧
			// console.log('去请求接口');
			try {
				let reslut = await searchedVistor({
					para: this.para
				});
				//成功
				new MyShow('需要渲染的字段').tixing();
			} catch (e) {
				//TODO handle the exception
				new MyShow('需要渲染的字段').tixing();
			}
		},
		gotoinfo(val) {
			uni.navigateTo({
				url: './p11'
			});
		},
		goto(val) {
			uni.navigateTo({
				url:"./p21?id="+val.id
			})
		},
		goto25(){
			uni.navigateTo({
				url:"./p25fangyuanmingxi"
			})
		}
	}
};
</script>

<style lang="scss">
@import './main.scss';
.myright {
	display: flex;
	flex-direction: column;
	image {
		width: 20px;
		height: 20px;
	}
	margin-top: 40px;
	align-items: center;
	color: #ffffff;
	text {
		margin-top: 5px;
	}
}
</style>
